package javathree;

public class Rectangle {

	private int width;
	private int length;
	public Rectangle(int length,int width){
			this.length=length;
			this.width=width;
	}
	public String toString() {
		return "Rectangle [width=" + width + ", length=" + length + "]";
	}
	public int getPerimeter(int length,int width){
		return (length*2+width*2);
	}
	public int getArea(int length,int width){
		return (int)(length*width);
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}

}
